<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Determin if buffer enabled</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="seaslog.getbuffer.html">« SeasLog::getBuffer</a></li>
      <li style="float: right;"><a href="seaslog.getdatetimeformat.html">SeasLog::getDatetimeFormat »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.seaslog.html">SeasLog</a></li>
    <li>Determin if buffer enabled</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="seaslog.getbufferenabled" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SeasLog::getBufferEnabled</h1>
  <p class="verinfo">(PECL seaslog &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">SeasLog::getBufferEnabled</span> &mdash; <span class="dc-title">Determin if buffer enabled</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-seaslog.getbufferenabled-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>SeasLog::getBufferEnabled</strong></span>(): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
    Result join <a href="seaslog.configuration.html#ini.seaslog.use-buffer" class="link">seaslog.use_buffer</a> 
    and <a href="seaslog.configuration.html#ini.seaslog.buffer-disabled-in-cli" class="link">seaslog.buffer_disabled_in_cli</a>.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-seaslog.getbufferenabled-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-seaslog.getbufferenabled-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Return TRUE on <a href="seaslog.configuration.html#ini.seaslog.use-buffer" class="link">seaslog.use_buffer</a> is true.
   If switch <a href="seaslog.configuration.html#ini.seaslog.buffer-disabled-in-cli" class="link">seaslog.buffer_disabled_in_cli</a> on, and running in cli, 
   seaslog.use_buffer setting will be discarded, Seaslog write to the Data Store IMMEDIATELY.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-seaslog.getbufferenabled-examples">
  <h3 class="title">范例</h3>
  <div class="example" id="example-3528">
   <p><strong>示例 #1 <span class="function"><strong>SeasLog::getBufferEnabled()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">SeasLog</span><span style="color: #007700">::</span><span style="color: #0000BB">getBufferEnabled</span><span style="color: #007700">());<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

   <div class="example-contents"><p>以上例程的输出类似于：</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
bool(false)
</pre></div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-seaslog.getbufferenabled-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member"><a href="seaslog.configuration.html#ini.seaslog.use-buffer" class="link">seaslog.use_buffer</a></li>
   <li class="member"><a href="seaslog.configuration.html#ini.seaslog.buffer-size" class="link">seaslog.buffer_size</a></li>
   <li class="member"><a href="seaslog.configuration.html#ini.seaslog.buffer-disabled-in-cli" class="link">seaslog.buffer_disabled_in_cli</a></li>
   <li class="member"><span class="methodname"><a href="seaslog.getbuffer.html" class="methodname" rel="rdfs-seeAlso">SeasLog::getBuffer()</a> - 获取内存中的日志缓存数组</span></li>
   <li class="member"><span class="methodname"><a href="seaslog.flushbuffer.html" class="methodname" rel="rdfs-seeAlso">SeasLog::flushBuffer()</a> - 将日志缓存刷新到介质中，文件介质，或者发送到远端的 TCP/UDP 服务地址。</span></li>
  </ul>
 </div>



</div></div></div></body></html>